Column<Model>
Assembly: ServiceStack.Blazor.dll
View Source
Declaration
public class Column<Model> : UiComponentBase
Properties
LocalStorage
View Source
Declaration
public LocalStorage LocalStorage { get; set; }
DataGrid
View Source
Declaration
public DataGrid<Model> DataGrid { get; set; }
Field
View Source
Declaration
public Expression<Func<Model, object>> Field { get; set; }
FieldName
View Source
Declaration
public string FieldName { get; set; }
HeaderClass
View Source
Declaration
public string HeaderClass { get; set; }
HeaderBreakpoint
View Source
Declaration
public Breakpoint? HeaderBreakpoint { get; set; }
CellClass
View Source
Declaration
public string CellClass { get; set; }
Title
View Source
Declaration
public string Title { get; set; }
Format
View Source
Declaration
public string Format { get; set; }
AllowFiltering
View Source
Declaration
public bool AllowFiltering { get; set; }
Formatter
View Source
Declaration
public Func<object, string>? Formatter { get; set; }
VisibleFrom
View Source
Declaration
public Breakpoint? VisibleFrom { get; set; }
Settings
View Source
Declaration
public ColumnSettings Settings { get; set; }
Label
View Source
Declaration
public string Label { get; }
Header
View Source
Declaration
public RenderFragment? Header { get; set; }
Template
View Source
Declaration
public RenderFragment<Model>? Template { get; set; }
Filters
View Source
Declaration
public List<Filter> Filters { get; }
CacheKey
View Source
Declaration
public string CacheKey { get; }
Name
View Source
Declaration
public string Name { get; }
FieldType
View Source
Declaration
public Type FieldType { get; }
EnumEntries
View Source
Declaration
public KeyValuePair<string, string>[] EnumEntries { get; }
PropertyAccessor
View Source
Declaration
public PropertyAccessor PropertyAccessor { get; set; }
Property
View Source
Declaration
public PropertyInfo Property { get; }
MetadataProperty
View Source
Declaration
public MetadataPropertyType MetadataProperty { get; set; }
IsComputed
View Source
Declaration
public bool IsComputed { get; }
Definitions
View Source
Declaration
public List<AutoQueryConvention> Definitions { get; }
FilterRules
View Source
Declaration
public List<AutoQueryConvention> FilterRules { get; }
Inherited Properties
class
Optional user defined classes for this component
View Source
Declaration
public string class { get; set; }
Class
View Source
Declaration
public string Class { get; }
JS
View Source
Declaration
public IJSRuntime JS { get; set; }
Fields
InstanceId
View Source
Declaration
public int InstanceId
Methods
OnInitialized()
View Source
Declaration
protected override void OnInitialized()
OnParametersSet()
View Source
Declaration
protected override void OnParametersSet()
OnAfterRenderAsync(Boolean)
View Source
Declaration
protected override async Task OnAfterRenderAsync(bool firstRender)
Returns
Task
Parameters
Type | Name |
---|---|
System.Boolean | firstRender |
SaveSettingsAsync()
View Source
Declaration
public async Task SaveSettingsAsync()
Returns
Task
RemoveSettingsAsync()
View Source
Declaration
public async Task RemoveSettingsAsync()
Returns
Task
FormatValue(Type, String)
View Source
Declaration
public string FormatValue(Type type, string value)
Returns
System.String
Parameters
Type | Name |
---|---|
Type | type |
System.String | value |
GetFilterRule(String)
View Source
Declaration
public AutoQueryConvention GetFilterRule(string value)
Returns
ServiceStack.AutoQueryConvention
Parameters
Type | Name |
---|---|
System.String | value |
GetFilterValue(Filter)
View Source
Declaration
public string GetFilterValue(Filter filter)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Blazor.Components.Filter | filter |
GetMemberType(MemberInfo)
View Source
Declaration
public static Type? GetMemberType(MemberInfo member)
Returns
System.Nullable<Type>
Parameters
Type | Name |
---|---|
System.Reflection.MemberInfo | member |
Inherited Methods
ClassNames(String[])
Helper to combine multiple css classes. Strings can contain multiple classes, empty strings are ignored.
View Source
Declaration
protected virtual string ClassNames(params string[] classes)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String[] | classes |
CssClass(String, String)
Return any user-defined classes along with optional classes for when component is in a valid
or invalid
state
View Source
Declaration
protected virtual string CssClass(string valid = null, string invalid = null)
Returns
System.String
Parameters
Type | Name | Description |
---|---|---|
System.String | valid | css classes to include when valid |
|
| System.String
| invalid | css classes to include when invalid
|
OnAfterRenderAsync(Boolean)
View Source
Declaration
protected override async Task OnAfterRenderAsync(bool firstRender)
Returns
Task
Parameters
Type | Name |
---|---|
System.Boolean | firstRender |
QueueRenderAction(Func<IJSRuntime, Task>)
View Source
Declaration
protected virtual void QueueRenderAction(Func<IJSRuntime, Task> action)
Parameters
Type | Name |
---|---|
Func<IJSRuntime,Task> | action |
SanitizeAttribute(String)
View Source
Declaration
public static bool SanitizeAttribute(string name)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | name |
SanitizeAttributes(Nullable<IReadOnlyDictionary<String, Object>>)
View Source
Declaration
public static IReadOnlyDictionary<string, object>? SanitizeAttributes(IReadOnlyDictionary<string, object>? attrs)
Returns
System.Nullable<IReadOnlyDictionary<System.String,System.Object>>
Parameters
Type | Name |
---|---|
System.Nullable<IReadOnlyDictionary<System.String,System.Object>> | attrs |
SetTitle(String)
Set the document.title
View Source
Declaration
protected virtual void SetTitle(string title)
Parameters
Type | Name |
---|---|
System.String | title |